package com.henry.utils;

public class TestUtils {
    static void expectEquals(String expected, String actual, String prefix) {
        if (!expected.equals(actual)) {
            String msg = " expecting '" + expected + "' but got '" + actual + "'. ";
            throw new AssertionError(prefix + msg);
        }
    }
    static void expectEquals(int expected, int actual, String prefix) {
        if (expected != actual) {
            String msg = " expecting " + expected + " but got " + actual + ". ";
            throw new AssertionError(prefix + msg);
        }
    }
}
